local View = Class()

View.UI = nil             -- gameobject of panel
View.RESOURCEPATH = nil   -- the resource

function View.init()
end

function View:LoadView()

end

function View:interactive(active)
    -- ugui hasn't a mechanism to disable a ui gameobjet only (SetActive make it also disappear)
    -- so, for those popup dialog without fullscreen, if
    -- 1, ui underside should't interactive, you should make a transparent background underneath the popup.
    -- 2, ui underside should interactive, it's simple, make you popup, and give it the StylePopupBox
end

function View:sortingOrder(order)

end

function View:show()
    self.UI:SetActive(true);
end

function View:hide()
    self.UI:SetActive(false);
end

function View:destroy()
    if nil ~= self.UI then
        GameObject.Destroy(self.UI)
        UIManager.disposeView(self.RESOURCEPATH)
    end
    self.UI = nil
end

function View:isDispose()
    if nil == self.UI then
        return true
    else
        return false
    end
end

return View